package com.bootmybatisdemo.demo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.bootmybatisdemo.demo.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author astupidcoder
 * @since 2021-05-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class User extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Excel(name = "姓名")
    private String name;

    @TableField("userId")
    private Integer userid;

    @Excel(name = "密码")
    private Integer password;

    @Excel(name = "类型")
    private Integer type;


}
